﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using model;
using dao;

namespace business
{
    public class NhomSanphamTrathatBUS
    {
        NhomSanphamTrathatDao nhomSanphamDao = new NhomSanphamTrathatDao();
      
        public List<NhomSanphamTrathat> getListNhomSanphamByID(long id)
        {
            return nhomSanphamDao.getListNhomSanphamByID(id);
        }

        public List<NhomSanphamTrathat> getListAllNhomsanpham()
        {
            return nhomSanphamDao.getListAllNhomsanpham();
        }

        public string themmoiNhomSanpham(NhomSanphamTrathat bv)
        {
            return nhomSanphamDao.themmoiNhomSanpham(bv);
        }

        public string suaNhomSanpham(NhomSanphamTrathat bv)
        {
            return nhomSanphamDao.suaNhomSanpham(bv);
        }
    }
}
